package com.spcloud.demo.busjob;

import com.ziroom.busrecoup.IRecoup;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p>TODO</p>
 * <p>
 * <PRE>
 * <BR>    修改记录
 * <BR>-----------------------------------------------
 * <BR>    修改日期         修改人          修改内容
 * </PRE>
 *
 * @author cuiyh9
 * @version 1.0
 * @Date Created in 2019年11月01日 10:42
 * @since 1.0
 */
@Slf4j
@Component
public class BusRecoupDemoJob implements IRecoup {

    @Override
    public void recoup(String jobJsonParam, String busCode) throws Exception {
        log.info("jobJsonParam:" + jobJsonParam + ",busCode:" + busCode);
    }

    @Override
    public void afterRecoup(String jobStatus, String jobJsonParam, String busCode, String failReason) throws Exception {
        log.info("jobStatus:" + jobStatus + ",jobJsonParam:" + jobJsonParam + ",busCode:" + busCode + ",failReason:" + failReason);
    }
}
